window.dataLx = s.toObject();
// 代码完全开源；额外服务：1对1讲解js逆向讲解，远程操作；视频讲解;【技术付费】。
// 威信：crazy20010110
// 技术采用websocket技术，可以获取消息有用户关注、用户点赞、用户进入直播间、用户发言、用户刷礼物以及用户个人信息。支持任何可以创建服务器的语言
!function(){
             var res = window.dataLx;
             var type = res['common']['method'];
                                // 姓名：
            var context1 = ['WebcastChatMessage','WebcastMemberMessage','WebcastGiftMessage','WebcastLikeMessage','WebcastSocialMessage'];
            if(context1.indexOf(type)!=-1){
                var list1={};
                    //姓名：
                var username = res["user"]["nickname"].replace(" ",'');
                var gender = res["user"]['gender'];
                var head_img = res["user"]['avatarThumb']['urlListList'][0];
                var uid =  "https://www.douyin.com/user/" + res['user']["secUid"];
                    // 关注数
                var followingCount = res['user']['followInfo']['followingCount'];
                    // 粉丝数
                var  followerCount = res['user']['followInfo']['followerCount'];
                    // 消费等级
                var level = res['user']['payGrade']['level'];
                list1['type'] = type;
                list1['username']=username;

                list1['gender']=gender;

                list1['head_img'] = head_img;
                list1['uid']=uid;
                list1['followingCount']=followingCount;
                list1['followerCount']=followerCount;
                list1['level']=level;
                    if(type =="WebcastChatMessage"){
                            var context = res['content'].replace(" ", '');
                            list1['context'] = context;

                    }
                   else if(type=="WebcastMemberMessage"){
                            var memberCount = res['memberCount'];
                            list1['memberCount'] = memberCount;
                    }
                    else if(type=="WebcastLikeMessage"){
                            var total = res['total'];
                            var count = res['count'];
                            list1['total'] = total;
                            list1['count'] = count;

                    }
                    else if(type=="WebcastGiftMessage"){
                            var describe = res["common"]["describe"].replace(" ", '');

                            list1['describe'] = describe;


                    }



            //
               if (window.flagLX){
                       window.wsLX.send(JSON.stringify(list1));



               }
            else{
                var ws = new WebSocket("ws://127.0.0.1:9999");
                window.wsLX=ws;
                window.flagLX =true;

                ws.open = function(evt){};
                ws.onmessage = function(evt){
                    ws.send(JSON.stringify(list1));
                }}}
            }();